package com.erp.erp_servers.CustomerPool.imp;

import com.erp.erp_dao.CustomerPool.ICustomerPoolDAO;
import com.erp.erp_entitys.CustomerPool.CustomerPoolEntity;
import com.erp.erp_entitys.CustomerPool.CustomerPoolExample;
import com.erp.erp_servers.CustomerPool.ICustomerPoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @ClassName ImpCustomerPoolService
 * @Description TODO
 * @Author songjizhen
 * @Date 2020-06-29 20:05
 * @Version 1.0
 */
@Service
public class ImpCustomerPoolService implements ICustomerPoolService {
    @Autowired
    ICustomerPoolDAO customerPoolDAO;

    @Override
    public long countByExample(CustomerPoolExample example) {
        return customerPoolDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(CustomerPoolExample example) {
        return customerPoolDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return customerPoolDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CustomerPoolEntity record) {
        return customerPoolDAO.insert(record);
    }

    @Override
    public int insertSelective(CustomerPoolEntity record) {
        return customerPoolDAO.insertSelective(record);
    }

    @Override
    public List<CustomerPoolEntity> selectByExample(CustomerPoolExample example) {
        return customerPoolDAO.selectByExample(example);
    }

    @Override
    public CustomerPoolEntity selectByPrimaryKey(Integer id) {
        return customerPoolDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CustomerPoolEntity record, CustomerPoolExample example) {
        return customerPoolDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CustomerPoolEntity record, CustomerPoolExample example) {
        return customerPoolDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(CustomerPoolEntity record) {
        return customerPoolDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CustomerPoolEntity record) {
        return customerPoolDAO.updateByPrimaryKey(record);
    }
}
